/**
 * Created by zxr on 16/11/21.
 */
var http = require('http');
var fs  = require('fs');
var path = require('path');
var server = http.createServer(service);

function service(req, res){
		if (req.url == '/'){
			var stream = fs.createReadStream(path.join(__dirname, 'static/index.html'));
			stream.pipe(res);
		}
};
server.listen('3030');